package service

import (
	"context"
	"github.com/aphasia51/website/internal/domain"
	"github.com/aphasia51/website/internal/repository"
)

type ExperimentalPersonnelService struct {
	repo *repository.ExperimentalPersonnelRepository
}

func NewExperimentalPersonnelService(repo *repository.ExperimentalPersonnelRepository) *ExperimentalPersonnelService {
	return &ExperimentalPersonnelService{
		repo: repo,
	}
}

func (svc *ExperimentalPersonnelService) Query(ctx context.Context, a domain.ExperimentalPersonnel) ([]domain.ExperimentalPersonnel, error) {
	return svc.repo.Query(ctx, a)
}

func (svc *ExperimentalPersonnelService) QueryCertificate(ctx context.Context, PeopleId string) ([]domain.Certificate, error) {
	return svc.repo.QueryCertificate(ctx, PeopleId)
}
